/*
* @Author: Srain
* @Date:   2018-07-27 15:28:32
* @Last Modified by:   Srain 
* @Last Modified time: 2018-09-24 17:01:32
*/


'use strict';

var _mm = require('util/mm.js');

var _group = {
    // 获取团体列表
    getGroupList : function(listParam, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/group/list'),
            data    : listParam,
            success : resolve,
            error   : reject
        });
    },
    // 获取团体详细信息
    getGroupDetail : function(id, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/group/groupdetail'),
            data    : {
                id : id
            },
            success : resolve,
            error   : reject
        });
    },
    // 我的团体信息
    getGroupInfo : function(resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/baseVo/wz/myGroup'),
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _group;